package com.pxst.bank.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.pxst.entity.BaseEntity;
import lombok.Data;

/**
 * 银行卡流水(bc110)
 * @TableName sys_bank_card_flow
 */
@TableName(value ="sys_bank_card_flow")
@Data
public class SysBankCardFlowEntity extends BaseEntity implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 系统银行卡ID
     */
    private Long bankCardId;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 账户余额_讯银
     */
    private BigDecimal xyBalance;

    /**
     * 充值冻结金额 (入)
     */
    private BigDecimal fiFreezeAmount;

    /**
     * 代付冻结金额 (出)
     */
    private BigDecimal foFreezeAmount;

    /**
     * 下发冻结金额 (出)
     */
    private BigDecimal fxFreezeAmount;

    /**
     * ET 冻结金额 (出)
     */
    private BigDecimal etFreezeAmount;

    /**
     * 内转 IN 冻结金额 (入)
     */
    private BigDecimal trFreezeInAmount;

    /**
     * 内转 OUT 冻结金额 (出)
     */
    private BigDecimal trFreezeOutAmount;

    /**
     * 日流水量 (入)
     */
    private BigDecimal dayFlowIn;

    /**
     * 月流水量 (入)
     */
    private BigDecimal monthFlowIn;

    /**
     * 日流水量 (出)
     */
    private BigDecimal dayFlowOut;

    /**
     * 月流水量 (出)
     */
    private BigDecimal monthFlowOut;

    /**
     * 月成功次数 (入)
     */
    private Integer monthSuccessInCount;

    /**
     * 月冻结成功次数 (入)
     */
    private Integer monthFreezeSuccessInCount;

    /**
     * 月成功次数 (出)
     */
    private Integer monthSuccessOutCount;

    /**
     * 月冻结成功次数 (出)
     */
    private Integer monthFreezeSuccessOutCount;

    /**
     * 日成功次数 (入)
     */
    private Integer daySuccessInCount;

    /**
     * 日冻结成功次数 (入)
     */
    private Integer dayFreezeSuccessInCount;

    /**
     * 日成功次数 (出)
     */
    private Integer daySuccessOutCount;

    /**
     * 日冻结成功次数 (出)
     */
    private Integer dayFreezeSuccessOutCount;

    /**
     * 未知的 VBS 帐数量 (日)
     */
    private Integer dayUnknownVbs;

    /**
     * 今日收款
     */
    private BigDecimal totalDayCredit;

    /**
     * 今日支付
     */
    private BigDecimal totalDayDebit;

    /**
     * 负载量
     */
    private Integer capacity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysBankCardFlowEntity other = (SysBankCardFlowEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBankCardId() == null ? other.getBankCardId() == null : this.getBankCardId().equals(other.getBankCardId()))
            && (this.getBalance() == null ? other.getBalance() == null : this.getBalance().equals(other.getBalance()))
            && (this.getXyBalance() == null ? other.getXyBalance() == null : this.getXyBalance().equals(other.getXyBalance()))
            && (this.getFiFreezeAmount() == null ? other.getFiFreezeAmount() == null : this.getFiFreezeAmount().equals(other.getFiFreezeAmount()))
            && (this.getFoFreezeAmount() == null ? other.getFoFreezeAmount() == null : this.getFoFreezeAmount().equals(other.getFoFreezeAmount()))
            && (this.getFxFreezeAmount() == null ? other.getFxFreezeAmount() == null : this.getFxFreezeAmount().equals(other.getFxFreezeAmount()))
            && (this.getEtFreezeAmount() == null ? other.getEtFreezeAmount() == null : this.getEtFreezeAmount().equals(other.getEtFreezeAmount()))
            && (this.getTrFreezeInAmount() == null ? other.getTrFreezeInAmount() == null : this.getTrFreezeInAmount().equals(other.getTrFreezeInAmount()))
            && (this.getTrFreezeOutAmount() == null ? other.getTrFreezeOutAmount() == null : this.getTrFreezeOutAmount().equals(other.getTrFreezeOutAmount()))
            && (this.getDayFlowIn() == null ? other.getDayFlowIn() == null : this.getDayFlowIn().equals(other.getDayFlowIn()))
            && (this.getMonthFlowIn() == null ? other.getMonthFlowIn() == null : this.getMonthFlowIn().equals(other.getMonthFlowIn()))
            && (this.getDayFlowOut() == null ? other.getDayFlowOut() == null : this.getDayFlowOut().equals(other.getDayFlowOut()))
            && (this.getMonthFlowOut() == null ? other.getMonthFlowOut() == null : this.getMonthFlowOut().equals(other.getMonthFlowOut()))
            && (this.getMonthSuccessInCount() == null ? other.getMonthSuccessInCount() == null : this.getMonthSuccessInCount().equals(other.getMonthSuccessInCount()))
            && (this.getMonthFreezeSuccessInCount() == null ? other.getMonthFreezeSuccessInCount() == null : this.getMonthFreezeSuccessInCount().equals(other.getMonthFreezeSuccessInCount()))
            && (this.getMonthSuccessOutCount() == null ? other.getMonthSuccessOutCount() == null : this.getMonthSuccessOutCount().equals(other.getMonthSuccessOutCount()))
            && (this.getMonthFreezeSuccessOutCount() == null ? other.getMonthFreezeSuccessOutCount() == null : this.getMonthFreezeSuccessOutCount().equals(other.getMonthFreezeSuccessOutCount()))
            && (this.getDaySuccessInCount() == null ? other.getDaySuccessInCount() == null : this.getDaySuccessInCount().equals(other.getDaySuccessInCount()))
            && (this.getDayFreezeSuccessInCount() == null ? other.getDayFreezeSuccessInCount() == null : this.getDayFreezeSuccessInCount().equals(other.getDayFreezeSuccessInCount()))
            && (this.getDaySuccessOutCount() == null ? other.getDaySuccessOutCount() == null : this.getDaySuccessOutCount().equals(other.getDaySuccessOutCount()))
            && (this.getDayFreezeSuccessOutCount() == null ? other.getDayFreezeSuccessOutCount() == null : this.getDayFreezeSuccessOutCount().equals(other.getDayFreezeSuccessOutCount()))
            && (this.getDayUnknownVbs() == null ? other.getDayUnknownVbs() == null : this.getDayUnknownVbs().equals(other.getDayUnknownVbs()))
            && (this.getTotalDayCredit() == null ? other.getTotalDayCredit() == null : this.getTotalDayCredit().equals(other.getTotalDayCredit()))
            && (this.getTotalDayDebit() == null ? other.getTotalDayDebit() == null : this.getTotalDayDebit().equals(other.getTotalDayDebit()))
            && (this.getCapacity() == null ? other.getCapacity() == null : this.getCapacity().equals(other.getCapacity()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBankCardId() == null) ? 0 : getBankCardId().hashCode());
        result = prime * result + ((getBalance() == null) ? 0 : getBalance().hashCode());
        result = prime * result + ((getXyBalance() == null) ? 0 : getXyBalance().hashCode());
        result = prime * result + ((getFiFreezeAmount() == null) ? 0 : getFiFreezeAmount().hashCode());
        result = prime * result + ((getFoFreezeAmount() == null) ? 0 : getFoFreezeAmount().hashCode());
        result = prime * result + ((getFxFreezeAmount() == null) ? 0 : getFxFreezeAmount().hashCode());
        result = prime * result + ((getEtFreezeAmount() == null) ? 0 : getEtFreezeAmount().hashCode());
        result = prime * result + ((getTrFreezeInAmount() == null) ? 0 : getTrFreezeInAmount().hashCode());
        result = prime * result + ((getTrFreezeOutAmount() == null) ? 0 : getTrFreezeOutAmount().hashCode());
        result = prime * result + ((getDayFlowIn() == null) ? 0 : getDayFlowIn().hashCode());
        result = prime * result + ((getMonthFlowIn() == null) ? 0 : getMonthFlowIn().hashCode());
        result = prime * result + ((getDayFlowOut() == null) ? 0 : getDayFlowOut().hashCode());
        result = prime * result + ((getMonthFlowOut() == null) ? 0 : getMonthFlowOut().hashCode());
        result = prime * result + ((getMonthSuccessInCount() == null) ? 0 : getMonthSuccessInCount().hashCode());
        result = prime * result + ((getMonthFreezeSuccessInCount() == null) ? 0 : getMonthFreezeSuccessInCount().hashCode());
        result = prime * result + ((getMonthSuccessOutCount() == null) ? 0 : getMonthSuccessOutCount().hashCode());
        result = prime * result + ((getMonthFreezeSuccessOutCount() == null) ? 0 : getMonthFreezeSuccessOutCount().hashCode());
        result = prime * result + ((getDaySuccessInCount() == null) ? 0 : getDaySuccessInCount().hashCode());
        result = prime * result + ((getDayFreezeSuccessInCount() == null) ? 0 : getDayFreezeSuccessInCount().hashCode());
        result = prime * result + ((getDaySuccessOutCount() == null) ? 0 : getDaySuccessOutCount().hashCode());
        result = prime * result + ((getDayFreezeSuccessOutCount() == null) ? 0 : getDayFreezeSuccessOutCount().hashCode());
        result = prime * result + ((getDayUnknownVbs() == null) ? 0 : getDayUnknownVbs().hashCode());
        result = prime * result + ((getTotalDayCredit() == null) ? 0 : getTotalDayCredit().hashCode());
        result = prime * result + ((getTotalDayDebit() == null) ? 0 : getTotalDayDebit().hashCode());
        result = prime * result + ((getCapacity() == null) ? 0 : getCapacity().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bankCardId=").append(bankCardId);
        sb.append(", balance=").append(balance);
        sb.append(", xyBalance=").append(xyBalance);
        sb.append(", fiFreezeAmount=").append(fiFreezeAmount);
        sb.append(", foFreezeAmount=").append(foFreezeAmount);
        sb.append(", fxFreezeAmount=").append(fxFreezeAmount);
        sb.append(", etFreezeAmount=").append(etFreezeAmount);
        sb.append(", trFreezeInAmount=").append(trFreezeInAmount);
        sb.append(", trFreezeOutAmount=").append(trFreezeOutAmount);
        sb.append(", dayFlowIn=").append(dayFlowIn);
        sb.append(", monthFlowIn=").append(monthFlowIn);
        sb.append(", dayFlowOut=").append(dayFlowOut);
        sb.append(", monthFlowOut=").append(monthFlowOut);
        sb.append(", monthSuccessInCount=").append(monthSuccessInCount);
        sb.append(", monthFreezeSuccessInCount=").append(monthFreezeSuccessInCount);
        sb.append(", monthSuccessOutCount=").append(monthSuccessOutCount);
        sb.append(", monthFreezeSuccessOutCount=").append(monthFreezeSuccessOutCount);
        sb.append(", daySuccessInCount=").append(daySuccessInCount);
        sb.append(", dayFreezeSuccessInCount=").append(dayFreezeSuccessInCount);
        sb.append(", daySuccessOutCount=").append(daySuccessOutCount);
        sb.append(", dayFreezeSuccessOutCount=").append(dayFreezeSuccessOutCount);
        sb.append(", dayUnknownVbs=").append(dayUnknownVbs);
        sb.append(", totalDayCredit=").append(totalDayCredit);
        sb.append(", totalDayDebit=").append(totalDayDebit);
        sb.append(", capacity=").append(capacity);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}